package com.asset.dispoal.address.domain.db.mapper;


import com.asset.dispoal.address.domain.db.entity.SysAddressDo;
import com.asset.dispoal.commom.version.annoation.SqlVersion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 地区表JDBC接口
 *
 * @author: mhuang
 * @date: 2022-02-16 09:51:00
 */
@Mapper
public interface SysAddressMapper {


    @SqlVersion("insert")
    void insert(@Param("sysAddressDo") SysAddressDo sysAddressDo);

    void update(@Param("sysAddressDo") SysAddressDo sysAddressDo);

    void delete(@Param("code") String code);

    SysAddressDo getById(@Param("code") String code);

    List<SysAddressDo> queryList(@Param("sysAddressDo") SysAddressDo sysAddressDo);

}